<%-- 
    Document   : index
    Created on : 20 mai 2012, 18:53:17
    Author     : ben
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript">
           function buildGraph(data, textStatus, jqXHR) {
               $("#displayRawData").innerText=data;
           }
           function ajaxRequest() {
                $.ajax({
                        type: "GET",
                        url: "graph",
                        dataType: "script",
                        success: "buildGraph"
                    });

                }
        </script>
         <script type="text/javascript" src="js/jquery-1.7.2.js" /> 
       <title>JSP Page</title>
    </head>
    <body>
        <input type="button" value="get data" onclick="javascript:ajaxRequest()" />
       <p id="displayRawData"> </p>
    </body>
</html>
